home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / CUJ9207.ARJ / 1007010B < prev    next >
Text File  |  1992-06-03  |  254b  |  15 lines

  1. Listing 2 -- mblen.c
  2.  
  3. /* mblen function */
  4. #include <stdlib.h>
  5.  
  6.         /* static data */
  7. _Mbsave _Mbxlen = {0};
  8.  
  9. int (mblen)(const char *s, size_t n)
  10.     {    /*    determine length of next multibyte code */
  11.     return (_Mbtowc(NULL, s, n, &_Mbxlen));
  12.     }
  13.  
  14.  
  15.